package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.dto.NewsAuthDto;
import com.heima.model.wemedia.pojo.WmNews;
import com.heima.model.wemedia.vo.WmNewsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author TheCai
 * @version 1.0
 * @date 2021/5/28 21:11
 */
public interface WmNewsMapper extends BaseMapper<WmNews> {
    //查询需要的
    List<WmNewsVo> findListAndPage(@Param("dto") NewsAuthDto dto);
    //符合条件的总数量
    long findListCount(@Param("dto") NewsAuthDto dto);
    //按照wuNew id查询需要的
    WmNewsVo findByWmId(@Param("id") Integer id);
}
